"""
Model classes for the flex-pyamf-blog
"""
from google.appengine.ext.db import Model
from google.appengine.ext import db

class MiniPost(Model):
    body = db.TextProperty()
    category = db.CategoryProperty()
    date = db.DateTimeProperty(auto_now_add=True)
    title = db.StringProperty()

class StaticPage(Model):
    body = db.TextProperty()
    title = db.StringProperty()

class Project(Model):
    date = db.DateTimeProperty(auto_now_add=True)
    imageFilename = db.StringProperty()
    imageUri = db.StringProperty()
    thumbnailFilename = db.StringProperty()
    thumbnailUri = db.StringProperty()
    title = db.StringProperty()

class FileInfo(object):
    filename = str()
    uri = str()

class ResultSet:
    def __init__(self):
        self.currentPage = -1
        self.firstPage = -1
        self.hasNextPage = False
        self.hasPreviousPage = False
        self.itemCountPerPage = -1
        self.items = []
        self.lastPage = -1
        self.nextPage = -1
        self.pageCount = -1
        self.previousPage = -1
        self.totalItemCount = -1
